<template>
	<view class="">
		<u-navbar back-text="" title="我的分组">
			<view slot="right" class="slot">
				<u-icon color="#999" size="28" name="edit-pen"></u-icon>
			</view>
		</u-navbar>
		<view class="info">
			我在"小组A"，9排31号
		</view>
		<view class="container">
			<view class="two">
				<view class="two-item">
					<image src="https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1121366309,3237839788&fm=11&gp=0.jpg" mode=""></image>
					<view class="">
						<view class="name">
							李可可
						</view>
						<view class="zuo">
							1排1号
						</view>
					</view>
					<view class="icon">
						排长
					</view>
				</view>
				<view class="two-item">
					<image src="https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1121366309,3237839788&fm=11&gp=0.jpg" mode=""></image>
					<view class="">
						<view class="name">
							李可可
						</view>
						<view class="zuo">
							1排1号
						</view>
						<view class="icon">
							组长
						</view>
					</view>
				</view>
			</view>
			
			<!-- 折叠版 -->
			<view class="">
				<u-collapse :head-style="itemHead">
					<u-collapse-item title="" v-for="" :key="">
						<view slot="title" class="slot-title">
							<image src="../../static/img/22.png" mode=""></image>
							<text>小组A</text>
						</view>
						<view class="zheDieBan">
							<view class="one">
								<view class="one-item">
									<image src="https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1121366309,3237839788&fm=11&gp=0.jpg" mode=""></image>
									<view class="">
										<view class="name">
											李可可
										</view>
										<view class="zuo">
											1排1号
										</view>
									</view>
									<view class="icon">
										排长
									</view>
								</view>
							</view>
						</view>
					</u-collapse-item>
					
					<u-collapse-item title="" v-for="" :key="">
						<view slot="title" class="slot-title">
							<image src="../../static/img/22.png" mode=""></image>
							<text>小组B</text>
						</view>
						<view class="zheDieBan">
							<view class="one">
								<view class="one-item">
									<image src="https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1121366309,3237839788&fm=11&gp=0.jpg" mode=""></image>
									<view class="">
										<view class="name">
											李可可
										</view>
										<view class="zuo">
											1排1号
										</view>
									</view>
									<view class="icon">
										排长
									</view>
								</view>
							</view>
						</view>
					</u-collapse-item>
					
					<u-collapse-item title="" v-for="" :key="">
						<view slot="title" class="slot-title">
							<image src="../../static/img/22.png" mode=""></image>
							<text>小组C</text>
						</view>
						<view class="zheDieBan">
							<view class="one">
								<view class="one-item">
									<image src="https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1121366309,3237839788&fm=11&gp=0.jpg" mode=""></image>
									<view class="">
										<view class="name">
											李可可
										</view>
										<view class="zuo">
											1排1号
										</view>
									</view>
									<view class="icon">
										排长
									</view>
								</view>
							</view>
						</view>
					</u-collapse-item>
				</u-collapse>
			</view>
			
		

			





		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				itemHead: {
					backgroundColor: '#fff',
					borderRadius: '20rpx',
					paddingLeft: '20rpx',
					marginTop: '20rpx'
				}
			}
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #f6f7fb;
	}

	.slot {
		padding-right: 20rpx;
	}

	.info {
		background-color: #f0f4ff;
		color: #7b8ce4;
		line-height: 100rpx;
		text-align: center;
	}

	.container {
		padding: 20rpx 30rpx;

		.two {
			display: flex;
			justify-content: space-between;

			.two-item {
				position: relative;
				display: flex;
				align-items: center;
				padding: 20rpx 0;
				width: calc(50% - 6px);
				background-color: #FFFFFF;
				border-radius: 20rpx;

				.icon {
					font-size: 20rpx;
					padding: 4rpx 20rpx;
					background-color: #b3c2fd;
					border-radius: 0 20rpx 0 20rpx;
					position: absolute;
					top: 0;
					right: 0;
					color: #f6f6f6;
				}

				image {
					width: 80rpx;
					height: 80rpx;
					margin-right: 10rpx;
				}

				.name {
					font-size: 28rpx;
					margin-bottom: 6rpx;
				}

				.zuo {
					color: #999;
					font-size: 24rpx;
				}
			}
		}
	}

	.slot-title {

		display: flex;
		align-items: center;
		

		image {
			width: 40rpx;
			height: 40rpx;
			margin-right: 20rpx;
		}

		text {
			font-size: 30rpx;
			font-weight: 700;

		}
	}
	.one {
		.one-item {
			position: relative;
			display: flex;
			align-items: center;
			padding: 20rpx 0;
			background-color: #FFFFFF;
			border-radius: 20rpx;
			margin-top: 20rpx;
			.icon {
				font-size: 20rpx;
				padding: 4rpx 20rpx;
				background-color: #b3c2fd;
				border-radius: 0 20rpx 0 20rpx;
				position: absolute;
				top: 0;
				right: 0;
				color: #f6f6f6;
			}
	
			image {
				width: 80rpx;
				height: 80rpx;
				margin-right: 10rpx;
			}
	
			.name {
				font-size: 28rpx;
				margin-bottom: 6rpx;
			}
	
			.zuo {
				color: #999;
				font-size: 24rpx;
			}
		}
	
	
	
	}
</style>
